<?php   $util = new Util();
		$objDef = $util->getOEDef($className);
?>
<div class="buttons">
		  <?php $owner = $sf_user->getAttribute('ownerId'); ?>  
	      <?php if($owner <> '' and $owner!=$form->getObject()->getId()):?>
		  <?php   	$ownerClass = $sf_user->getAttribute('ownerClass');
		  			$ownerModule = $sf_user->getAttribute('ownerModule');
			    	if(isset($ownerModule)){
			    		if($ownerModule=='')
			    			$ownerModule = $module ;
			    	}?>
		  			<?php echo link_to('<img title="'.__('Go back').'" src="/images/icons/64/cancel.png"/>', $ownerModule.'/show?id='.$owner.'&className='.$ownerClass);?>
	      <?php else:?>
	      			<?php echo link_to('<img title="'.__('Go back').'" src="/images/icons/64/cancel.png"/>', $module.'/index?className='.$className);?>
          <?php endif;?>			
          <?php if (!$form->getObject()->isNew()): ?>
          	<?php if($objDef['general']['canBeDeleted']):?>
            &nbsp;<?php echo link_to('<img title="'.__('Delete').'" src="/images/icons/64/delete.png"/>', $module.'/delete?id='.$form->getObject()->getId().'&className='.$className,  array('method' => 'delete', 'confirm' => __('Are you sure'))); ?>
            <?php endif;?>
          <?php endif; ?>
          <input name="submit" title="<?php echo __('Save')?>" type="image" src="/images/icons/64/confirm.png">
</div>

